<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../js/jquery-3.6.min.js"></script>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    .wrap {
        margin: 0 auto;
        width: 500px;
        height: 300px;
        border: 1px #333 solid;
    }

    .wrap input {
        outline: none;
    }
</style>

<body>
    <div id="wrap">
    </div>
</body>
<script>
    $(function () {
        $("#wrap").addClass("wrap").html("设置时间:<input/>");
        $("#wrap input").focus(function() {
            console.log(11);
        });
    })
</script>

</html>